package com.gxks.lhs.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 收藏表
 * </p>
 *
 * @author LuoHaisong
 * @since 2023-05-18
 */
@Getter
@Setter
@Accessors(chain = true)
@ApiModel(value = "Favorite对象", description = "收藏表")
public class Favorite implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id")
    @ApiModelProperty("收藏ID，主键")
    private String id;

    @ApiModelProperty("收藏者ID，外键关联用户表")
    private String userId;

    @ApiModelProperty("商品ID，外键关联商品表")
    private String goodsId;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("收藏时间")
    private LocalDateTime createTime;


}
